package com.itheima.reggie.service;

import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {

    //添加到购物车
    R<ShoppingCart> add(ShoppingCart shoppingCart);

    //查看购物车信息
    R<List<ShoppingCart>> findCartByUserId(Long userId);

    //清空购物车
    void cleanCart(Long userId);

    //删除购物车
    R<ShoppingCart> delect(ShoppingCart shoppingCart);
}
